
<!-- saved from url=(0026)http://localhost/test.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>提问_骡窝窝问答</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui,viewport-fit=cover">
    <meta name="copyright" content="Copyright (c) 2006-2018 Mafengwo.">
    <meta name="format-detection" content="telephone=no,address=no">
    <meta name="referrer" content="always">
    <meta name="apple-mobile-web-app-capable" content="no">
    <meta name="apple-mobile-web-app-status-bar-style" content="no">

    <link href="/css/mobile+css+head_mobile+css+ui^YVw^1526627473.css" rel="stylesheet" type="text/css">


    <link href="/css/ask.css" rel="stylesheet" type="text/css">
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">

    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
	<script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/form/jquery.form.js"></script>
	<script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <style type="text/css">
        .head2home {
            background: #4D4C4B;
            color: white;
            content: '\f053';
            font-size: 18px;
            line-height: 50px;
        }
    </style>
    <script>
        $(function () {
            $('#submitBtn').click(function () {
                $('#askForm').ajaxSubmit(function (data) {
                    if (data.success){
                        $(document).dialog({
                            type: 'notice',
                            infoText: '恭喜你!发布成功',
                            autoClose: 1000,
                            position: 'center'  // center: 居中; bottom: 底部
                        });
                        window.location.href = "../question.html";
                    }else{
                        $(document).dialog({
                            type: 'notice',
                            infoText: '网络出问题,请稍候重试',
                            autoClose: 1000,
                            position: 'center'  // center: 居中; bottom: 底部
                        });
                    }
                })
            });
        });
    </script>
</head>
<body>
<div id="pos38"></div>
<header class="head2home">
    <div class="row ">
        <div class="col " style="margin: 0px 7px;">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left" style="line-height: 50px"></i></span>
            </a>
        </div>
        <div class="col" style="text-align: center;line-height: 50px">
            <span >提问</span>
        </div>
        <div class="col"></div>
    </div>
</header>


<section class="Addnew">
    <div id="_j_publish_box" class="ask_tan_con">
        <form method="post" action="/questions" id="askForm">
            <dl>
                <dd class="_j_word">
                    <input value="" class="_j_q_title _j_word_check" placeholder="请输入你的问题，不少于10个字哦" name="title">
                    <input value="0" type="hidden" class="_j_q_qid">

                    <div class="wordsnum">
                        <span class="_j_word_num">0</span>/<span class="_j_max_num">80</span>
                        <span class="_j_min_num" style="display:none;">10</span>
                    </div>
                    <div class="err-tips" style="display: none;"></div>
                </dd>
            </dl>
            <dl>
                <dt>问题说明</dt>
                <dd class="con_textarea _j_word" id="con_textarea">
                    <textarea rows="1" id="pnl_textarea" class="_j_q_content _j_word_check" name="content"></textarea>
                    <div class="wordsnum"><span class="_j_word_num">0</span>/<span class="_j_max_num">1000</span></div>
                    <div class="err-tips" style="display: none;"></div>
                </dd>
            </dl>

            <dl>
                <dd>
                    <a class="_j_publish_question" id="submitBtn">发布问题</a>
                </dd>
            </dl>
        </form>
    </div>
</section>
</body>
</html>